.class public Lcom/example/m6wmr/ReportShop;
.super Landroid/app/Activity;
.source "ReportShop.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/m6wmr/ReportShop$mOncliclisterner;
    }
.end annotation


# instance fields
.field private activities:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/app/Activity;",
            ">;"
        }
    .end annotation
.end field

.field private closebtn:Landroid/widget/LinearLayout;

.field content:Ljava/lang/String;

.field private context:Landroid/content/Context;

.field private et_report:Landroid/widget/EditText;

.field private et_reporter_phone:Landroid/widget/EditText;

.field private handler:Landroid/os/Handler;

.field private ll_report:Landroid/widget/LinearLayout;

.field private m:Lmyapp/MyApp;

.field phone:Ljava/lang/String;

.field private reportBeans:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/ReportBean;",
            ">;"
        }
    .end annotation
.end field

.field reprotString:Ljava/lang/String;

.field shopid:Ljava/lang/String;

.field shopname:Ljava/lang/String;

.field private tv_shopname:Landroid/widget/TextView;

.field private tv_sure_commit:Landroid/widget/TextView;

.field private typeCount:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 34
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 55
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/ReportShop;->shopname:Ljava/lang/String;

    .line 57
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/ReportShop;->content:Ljava/lang/String;

    .line 59
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/ReportShop;->phone:Ljava/lang/String;

    .line 61
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/ReportShop;->reprotString:Ljava/lang/String;

    .line 63
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/ReportShop;->typeCount:Ljava/lang/String;

    .line 34
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/ReportShop;)Z
    .locals 1

    .prologue
    .line 276
    invoke-direct {p0}, Lcom/example/m6wmr/ReportShop;->getcommitData()Z

    move-result v0

    return v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/ReportShop;)V
    .locals 0

    .prologue
    .line 325
    invoke-direct {p0}, Lcom/example/m6wmr/ReportShop;->commitData()V

    return-void
.end method

.method static synthetic access$2(Lcom/example/m6wmr/ReportShop;)Ljava/util/List;
    .locals 1

    .prologue
    .line 53
    iget-object v0, p0, Lcom/example/m6wmr/ReportShop;->reportBeans:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6wmr/ReportShop;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 36
    iget-object v0, p0, Lcom/example/m6wmr/ReportShop;->context:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$4(Lcom/example/m6wmr/ReportShop;)Landroid/widget/LinearLayout;
    .locals 1

    .prologue
    .line 44
    iget-object v0, p0, Lcom/example/m6wmr/ReportShop;->ll_report:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6wmr/ReportShop;)Lmyapp/MyApp;
    .locals 1

    .prologue
    .line 37
    iget-object v0, p0, Lcom/example/m6wmr/ReportShop;->m:Lmyapp/MyApp;

    return-object v0
.end method

.method static synthetic access$6(Lcom/example/m6wmr/ReportShop;)Landroid/os/Handler;
    .locals 1

    .prologue
    .line 51
    iget-object v0, p0, Lcom/example/m6wmr/ReportShop;->handler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$7(Lcom/example/m6wmr/ReportShop;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 63
    iget-object v0, p0, Lcom/example/m6wmr/ReportShop;->typeCount:Ljava/lang/String;

    return-object v0
.end method

.method private commitData()V
    .locals 2

    .prologue
    .line 327
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/example/m6wmr/ReportShop$3;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/ReportShop$3;-><init>(Lcom/example/m6wmr/ReportShop;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 368
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 371
    return-void
.end method

.method private getResource()V
    .locals 2

    .prologue
    .line 199
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/example/m6wmr/ReportShop$2;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/ReportShop$2;-><init>(Lcom/example/m6wmr/ReportShop;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 258
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 264
    return-void
.end method

.method private getcommitData()Z
    .locals 9

    .prologue
    const/4 v5, 0x1

    const/4 v4, 0x0

    .line 278
    const-string v6, ""

    iput-object v6, p0, Lcom/example/m6wmr/ReportShop;->typeCount:Ljava/lang/String;

    .line 280
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_0
    iget-object v6, p0, Lcom/example/m6wmr/ReportShop;->reportBeans:Ljava/util/List;

    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v6

    if-lt v1, v6, :cond_0

    .line 292
    iget-object v6, p0, Lcom/example/m6wmr/ReportShop;->et_report:Landroid/widget/EditText;

    invoke-virtual {v6}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v6

    invoke-interface {v6}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v6

    const-string v7, "%"

    const-string v8, ""

    invoke-virtual {v6, v7, v8}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    const-string v7, " "

    const-string v8, ""

    invoke-virtual {v6, v7, v8}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, p0, Lcom/example/m6wmr/ReportShop;->reprotString:Ljava/lang/String;

    .line 294
    iget-object v6, p0, Lcom/example/m6wmr/ReportShop;->reprotString:Ljava/lang/String;

    const-string v7, ""

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_2

    .line 296
    iget-object v5, p0, Lcom/example/m6wmr/ReportShop;->context:Landroid/content/Context;

    const-string v6, "\u63d0\u793a\u4fe1\u606f"

    const-string v7, "\u8be6\u60c5\u4e0d\u80fd\u4e3a\u7a7a"

    invoke-static {v5, v6, v7}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 321
    :goto_1
    return v4

    .line 282
    :cond_0
    iget-object v6, p0, Lcom/example/m6wmr/ReportShop;->reportBeans:Ljava/util/List;

    invoke-interface {v6, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lbean/ReportBean;

    .line 284
    .local v0, "bean":Lbean/ReportBean;
    invoke-virtual {v0}, Lbean/ReportBean;->getIschoose()I

    move-result v6

    if-ne v6, v5, :cond_1

    .line 286
    iget-object v6, p0, Lcom/example/m6wmr/ReportShop;->typeCount:Ljava/lang/String;

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-static {v6}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v7, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lbean/ReportBean;->getReportMessage()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v7, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    iput-object v6, p0, Lcom/example/m6wmr/ReportShop;->typeCount:Ljava/lang/String;

    .line 280
    :cond_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 301
    .end local v0    # "bean":Lbean/ReportBean;
    :cond_2
    iget-object v6, p0, Lcom/example/m6wmr/ReportShop;->et_reporter_phone:Landroid/widget/EditText;

    invoke-virtual {v6}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v6

    invoke-interface {v6}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v6

    const-string v7, "%"

    const-string v8, ""

    invoke-virtual {v6, v7, v8}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    const-string v7, " "

    const-string v8, ""

    invoke-virtual {v6, v7, v8}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, p0, Lcom/example/m6wmr/ReportShop;->phone:Ljava/lang/String;

    .line 303
    iget-object v6, p0, Lcom/example/m6wmr/ReportShop;->phone:Ljava/lang/String;

    const-string v7, ""

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_3

    .line 305
    iget-object v5, p0, Lcom/example/m6wmr/ReportShop;->context:Landroid/content/Context;

    const-string v6, "\u63d0\u793a\u4fe1\u606f"

    const-string v7, "\u624b\u673a\u53f7\u7801\u4e0d\u80fd\u4e3a\u7a7a"

    invoke-static {v5, v6, v7}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    .line 310
    :cond_3
    const-string v6, "^((13[0-9])|(15[0-9])|(18[0-9])|(17[0-9]))\\d{8}$"

    invoke-static {v6}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v3

    .line 312
    .local v3, "p":Ljava/util/regex/Pattern;
    iget-object v6, p0, Lcom/example/m6wmr/ReportShop;->phone:Ljava/lang/String;

    invoke-virtual {v3, v6}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v2

    .line 314
    .local v2, "ms":Ljava/util/regex/Matcher;
    invoke-virtual {v2}, Ljava/util/regex/Matcher;->find()Z

    move-result v6

    if-nez v6, :cond_4

    .line 315
    iget-object v5, p0, Lcom/example/m6wmr/ReportShop;->context:Landroid/content/Context;

    const-string v6, "\u63d0\u793a\u4fe1\u606f"

    const-string v7, "\u624b\u673a\u53f7\u7801\u6709\u8bef"

    invoke-static {v5, v6, v7}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    :cond_4
    move v4, v5

    .line 321
    goto :goto_1
.end method

.method private initData()V
    .locals 1

    .prologue
    .line 375
    iput-object p0, p0, Lcom/example/m6wmr/ReportShop;->context:Landroid/content/Context;

    .line 376
    invoke-virtual {p0}, Lcom/example/m6wmr/ReportShop;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Lmyapp/MyApp;

    iput-object v0, p0, Lcom/example/m6wmr/ReportShop;->m:Lmyapp/MyApp;

    .line 378
    iget-object v0, p0, Lcom/example/m6wmr/ReportShop;->m:Lmyapp/MyApp;

    invoke-virtual {v0}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/example/m6wmr/ReportShop;->activities:Ljava/util/List;

    .line 379
    iget-object v0, p0, Lcom/example/m6wmr/ReportShop;->activities:Ljava/util/List;

    invoke-interface {v0, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 381
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/ReportShop;->reportBeans:Ljava/util/List;

    .line 383
    return-void
.end method

.method private initView()V
    .locals 1

    .prologue
    .line 68
    const v0, 0x7f0c0001

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/ReportShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/example/m6wmr/ReportShop;->closebtn:Landroid/widget/LinearLayout;

    .line 69
    const v0, 0x7f0c003d

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/ReportShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6wmr/ReportShop;->tv_shopname:Landroid/widget/TextView;

    .line 70
    const v0, 0x7f0c012c

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/ReportShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/example/m6wmr/ReportShop;->ll_report:Landroid/widget/LinearLayout;

    .line 72
    const v0, 0x7f0c012d

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/ReportShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/example/m6wmr/ReportShop;->et_report:Landroid/widget/EditText;

    .line 74
    const v0, 0x7f0c012e

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/ReportShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/example/m6wmr/ReportShop;->et_reporter_phone:Landroid/widget/EditText;

    .line 76
    const v0, 0x7f0c000e

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/ReportShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6wmr/ReportShop;->tv_sure_commit:Landroid/widget/TextView;

    .line 78
    return-void
.end method

.method private setOncliclister()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 269
    iget-object v0, p0, Lcom/example/m6wmr/ReportShop;->closebtn:Landroid/widget/LinearLayout;

    new-instance v1, Lcom/example/m6wmr/ReportShop$mOncliclisterner;

    invoke-direct {v1, p0, v2}, Lcom/example/m6wmr/ReportShop$mOncliclisterner;-><init>(Lcom/example/m6wmr/ReportShop;Lcom/example/m6wmr/ReportShop$mOncliclisterner;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 271
    iget-object v0, p0, Lcom/example/m6wmr/ReportShop;->tv_sure_commit:Landroid/widget/TextView;

    new-instance v1, Lcom/example/m6wmr/ReportShop$mOncliclisterner;

    invoke-direct {v1, p0, v2}, Lcom/example/m6wmr/ReportShop$mOncliclisterner;-><init>(Lcom/example/m6wmr/ReportShop;Lcom/example/m6wmr/ReportShop$mOncliclisterner;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 273
    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 6
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    const/4 v5, 0x1

    .line 83
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 84
    const v3, 0x7f030035

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/ReportShop;->setContentView(I)V

    .line 86
    invoke-direct {p0}, Lcom/example/m6wmr/ReportShop;->initData()V

    .line 88
    invoke-direct {p0}, Lcom/example/m6wmr/ReportShop;->initView()V

    .line 90
    invoke-virtual {p0}, Lcom/example/m6wmr/ReportShop;->getIntent()Landroid/content/Intent;

    move-result-object v0

    .line 91
    .local v0, "intent":Landroid/content/Intent;
    const-string v3, "shopid"

    invoke-virtual {v0, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/example/m6wmr/ReportShop;->shopid:Ljava/lang/String;

    .line 92
    const-string v3, "name"

    invoke-virtual {v0, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/example/m6wmr/ReportShop;->shopname:Ljava/lang/String;

    .line 93
    iget-object v3, p0, Lcom/example/m6wmr/ReportShop;->tv_shopname:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/example/m6wmr/ReportShop;->shopname:Ljava/lang/String;

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 94
    iget-object v3, p0, Lcom/example/m6wmr/ReportShop;->closebtn:Landroid/widget/LinearLayout;

    invoke-virtual {v3, v5}, Landroid/widget/LinearLayout;->setFocusable(Z)V

    .line 95
    iget-object v3, p0, Lcom/example/m6wmr/ReportShop;->closebtn:Landroid/widget/LinearLayout;

    invoke-virtual {v3, v5}, Landroid/widget/LinearLayout;->setFocusableInTouchMode(Z)V

    .line 96
    iget-object v3, p0, Lcom/example/m6wmr/ReportShop;->closebtn:Landroid/widget/LinearLayout;

    invoke-virtual {v3}, Landroid/widget/LinearLayout;->requestFocus()Z

    .line 98
    invoke-direct {p0}, Lcom/example/m6wmr/ReportShop;->getResource()V

    .line 100
    const/high16 v3, 0x7f0c0000

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/ReportShop;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout;

    .line 101
    .local v2, "top":Landroid/widget/LinearLayout;
    const v3, 0x7f0c012b

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/ReportShop;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 102
    .local v1, "iv":Landroid/widget/ImageView;
    iget-object v3, p0, Lcom/example/m6wmr/ReportShop;->m:Lmyapp/MyApp;

    invoke-virtual {v3}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v3

    const-string v4, "1"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 103
    const v3, 0x7f070026

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 104
    iget-object v3, p0, Lcom/example/m6wmr/ReportShop;->tv_sure_commit:Landroid/widget/TextView;

    const v4, 0x7f020020

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setBackgroundResource(I)V

    .line 105
    const v3, 0x7f020015

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 108
    :cond_0
    invoke-direct {p0}, Lcom/example/m6wmr/ReportShop;->setOncliclister()V

    .line 110
    new-instance v3, Lcom/example/m6wmr/ReportShop$1;

    invoke-direct {v3, p0}, Lcom/example/m6wmr/ReportShop$1;-><init>(Lcom/example/m6wmr/ReportShop;)V

    iput-object v3, p0, Lcom/example/m6wmr/ReportShop;->handler:Landroid/os/Handler;

    .line 191
    return-void
.end method
